﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Simple.Repository.Models.Market;

namespace Simple.Repository.Models.MorningCheck
{
    /// <summary>
    /// 晨检记录
    /// </summary>
    public class MCheckRecord : BusinessFullEntityBase<Guid>
    {
        /// <summary>
        /// 学生Id
        /// </summary>
        public Guid ChildrenId { get; set; }

        /// <summary>
        /// 学生姓名
        /// </summary>
        public string? ChildrenName { get; set; }

        /// <summary>
        /// 所在班级
        /// </summary>
        public Guid? ClassesId { get; set; }

        /// <summary>
        /// 体温
        /// </summary>
        public decimal BodyTemperature { get; set; }

        /// <summary>
        /// 咽喉类型
        /// </summary>
        public ThroatTypeEnum? ThroatType { get; set; }

        /// <summary>
        /// 晨检是否通过
        /// </summary>
        public bool IsSuccess { get; set; }

        public override void ConfigureEntity(ModelBuilder builder)
        {
            builder.Entity<MCheckRecord>(entity =>
            {
                entity.ToTable("MCheck_Record");
            });
        }
    }
}
